/* This file is part of the cappello C++ framework
Copyright (C) 2008-2011 by Dagobert Premier

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/


#ifndef _CAPPELLO_STATE_H_
#define _CAPPELLO_STATE_H_

namespace cappello
{

    template <typename ENUMSTATE> class State
    {
    public:
        State( ENUMSTATE initial , ENUMSTATE invalid ) :
          m_state(initial), m_prevstate(invalid), m_initial(initial), m_invalid(invalid)
          {
          }
    protected:
        ENUMSTATE m_state , m_prevstate , m_initial, m_invalid ;
    } ; // class State

} // namespace cappello 

#endif // _CAPPELLO_STATE_H_ 

